package com.lovely3x.jobservice.executors.extensions.downloader2.serializer;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * 随机文件访问器
 * Created by lovely3x on 16-1-28.
 */
public class RandomAccessFile extends java.io.RandomAccessFile implements RandomAccessWriter {

    public RandomAccessFile(File file, String mode) throws FileNotFoundException {
        super(file, mode);
    }

    public RandomAccessFile(String fileName, String mode) throws FileNotFoundException {
        super(fileName, mode);
    }

    @Override
    public void close() {
        try {
            super.close();
        } catch (Exception ignored) {
        }
    }
}
